home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
MCASM.RAR
/
MC_ASM.EXE
/
WROX_ASM
/
CH4
/
PROG4_5.ASM
< prev
next >
Wrap
Assembly Source File
|
1994-11-14
|
589b
|
28 lines
****************************************************************
Program 4.5 Detecting Tracing by Means of Command Pipeline
****************************************************************
dosseg
.model small
.data
mess db 'We are free',10,13,'$'
trace db 'We are being traced',10,13,'$'
.code
mov ax,@data
mov ds,ax
lea dx,mess
Modify: mov byte ptr cs:m+1,0 ; Zero jump distance at m
m:
jmp short norm_ex
lea dx,trace
norm_ex:
mov ah,9
int 21h ; Output string
mov ah,4ch
int 21h ; Terminate
end